package com.dragon.design.pattern.structural.proxy.cglib;

/**
 * @author dragon
 * @version V1.0.0-RELEASE
 * @date 2019/7/1 19:54
 */
public class CglibProxyTest {

    public static void main(String[] args) {
        DefaultProxy defaultProxy = new DefaultProxy();
        Dragon dragon = new Dragon();
        Dragon proxy = (Dragon) defaultProxy.getInstance(dragon);
         System.out.println(proxy);
        proxy.findLove();
    }
}
